JohnnyPicnic
JohnnyPicnic
I'm using an inject node to pass the parameters. EC2 StartInstance. tried setting msg.InstanceIds=[isntanceid] and got "SyntaxError: Unexpected token i in JSON at position 1" `[{"id":"a7e04ee08e02e01f","type":"inject","z":"54477b72.9b0d74","name":"","props":[{"p":"InstanceIds","v":"[i-aaaaaaa]","vt":"str"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":240,"y":310,"wires":[["4a44c52eb032248e"]]},{"id":"4a44c52eb032248e","type":"AWS EC2","z":"54477b72.9b0d74","aws":"90b694364b5c3889","operation":"StartInstances","ReservedInstanceIds":"","TransitGatewayAttachmentId":"","ServiceId":"","VpcEndpointIds":"","Cidr":"","AvailabilityZone":"","Quantity":"","ClientVpnEndpointId":"","VpcId":"","SecurityGroupIds":"","NetworkInterfaceId":"","SubnetId":"","DhcpOptionsId":"","IamInstanceProfile":"","InstanceId":"","RouteTableId":"","Ipv6CidrBlock":"","TransitGatewayRouteTableId":"","Groups":"","InternetGatewayId":"","DeviceIndex":"","Device":"","VolumeId":"vol-005ee787ab2419e7b","VpnGatewayId":"","TargetNetworkCidr":"","GroupId":"","Storage":"","BundleId":"","CapacityReservationId":"","ConversionTaskId":"","ExportTaskId":"","ReservedInstancesListingId":"","SpotFleetRequestIds":"","TerminateInstances":"","SpotInstanceRequestIds":"","ProductCode":"","SourceFpgaImageId":"","SourceRegion":"","Name":"","SourceImageId":"","SourceSnapshotId":"","InstanceType":"","InstancePlatform":"","InstanceCount":"","ClientCidrBlock":"","ServerCertificateArn":"","AuthenticationOptions":"","ConnectionLogOptions":"","DestinationCidrBlock":"","TargetVpcSubnetId":"","BgpAsn":"","Type":"","DhcpConfigurations":"","LaunchTemplateConfigs":"","TargetCapacitySpecification":"","ResourceIds":"","ResourceType":"","TrafficType":"","InputStorageLocation":"","ExportToS3Task":"","TargetEnvironment":"","KeyName":"","LaunchTemplateName":"","LaunchTemplateData":"","LocalGatewayRouteTableId":"","LocalGatewayVirtualInterfaceGroupId":"","PrefixListName":"","MaxEntries":"","AddressFamily":"","AllocationId":"","Egress":"","NetworkAclId":"","Protocol":"","RuleAction":"","RuleNumber":"","Source":"","Destination":"","ClientToken":"","Permission":"","PriceSchedules":"","ReservedInstancesId":"","Description":"","GroupName":"","InstanceSpecification":"","Bucket":"","CidrBlock":"","Resources":"","Tags":"","TrafficMirrorFilterId":"","TrafficDirection":"","SourceCidrBlock":"","TrafficMirrorTargetId":"","SessionNumber":"","TransportTransitGatewayAttachmentId":"","Options":"","PeerAddress":"","InsideCidrBlocks":"","TransitGatewayId":"","PeerTransitGatewayId":"","PeerAccountId":"","PeerRegion":"","PrefixListId":"","SubnetIds":"","ServiceName":"","ConnectionNotificationArn":"","ConnectionEvents":"","CustomerGatewayId":"","VpnConnectionId":"","CarrierGatewayId":"","EgressOnlyInternetGatewayId":"","FleetIds":"","FlowLogIds":"","FpgaImageId":"","Versions":"","LocalGatewayRouteTableVpcAssociationId":"","NatGatewayId":"","NetworkInsightsAnalysisId":"","NetworkInsightsPathId":"","NetworkInterfacePermissionId":"","ReservedInstancesIds":"","SnapshotId":"","TrafficMirrorFilterRuleId":"","TrafficMirrorSessionId":"","TransitGatewayConnectPeerId":"","TransitGatewayMulticastDomainId":"","ConnectionNotificationIds":"","ServiceIds":"","VpcPeeringConnectionId":"","ImageId":"","MaxResults":"","FleetId":"","StartTime":"","Attribute":"","PrincipalArn":"","FirstSlotStartTimeRange":"","Recurrence":"","SpotFleetRequestId":"","AttachmentId":"","AvailabilityZones":"","SourceSnapshotIds":"","GatewayId":"","AssociationId":"","DiskImageFormat":"","S3ExportLocation":"","S3Bucket":"","PoolId":"","InstanceFamily":"","HostIdSet":"","OfferingId":"","CertificateRevocationList":"","Platform":"","PublicKeyMaterial":"","Image":"","Volume":"","OptInStatus":"","CpuCredits":"","KmsKeyId":"","HostIds":"","Resource":"","UseLongIds":"","CapacityReservationSpecification":"","InstanceCreditSpecifications":"","InstanceEventId":"","NotBefore":"","TargetConfigurations":"","VpcEndpointId":"","ConnectionNotificationId":"","InstanceTenancy":"","VpnTunnelOutsideIpAddress":"","TunnelOptions":"","InstanceIds":"","PublicIp":"","ReservedInstancesOfferingId":"","PurchaseRequests":"","Instances":"","ReasonCodes":"","Status":"impaired","SpotFleetRequestConfig":"","PreviousVersion":"","CurrentVersion":"","MaxCount":"","MinCount":"","LaunchSpecification":"","ScheduledInstanceId":"","Filters":"","Ipv6Addresses":"","PrivateIpAddresses":"","IpPermissions":"","name":"Start","x":420,"y":310,"wires":[["278f47f227d03215"],["278f47f227d03215"]]},{"id":"278f47f227d03215","type":"debug","z":"54477b72.9b0d74","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":640,"y":310,"wires":[]},{"id":"90b694364b5c3889","type":"amazon config","name":"AWS","region":"ca-central-1","proxyRequired":false,"proxy":""}]`
msg : Object object _msgid: "a97e3cd9f65ee48a" payload: "" topic: "" InstanceIds: "[i-030fa455efd7291aa]"
Ah I got it. Modified this from the Node-Red forum. In a function node: `var myArray = context.get("myArray"); if(!myArray) { console.log("Set the array on context memory"); context.set("myArray", []); myArray =...
Is the return msg.payload tied to the type of content you select in the coap-response node? For the device I'm working with the payload must not be formatted so I'm...
Is the returned payload type determined by the list in the drop down Content-Format menu?  I may try editing the code to add this option...
Being able to remove the trending videos would be a huge improvement for me.
If you are comfortable editing fs-ops.html you can change(line 11): `destPath: {value: "", required: true},` to `destPath: {value: "", required: false},`
Looks like its possible to map the home assistant directories to the docker container. ` map | list | | List of Home Assistant directories to bind mount into your...