Sorry all, had a family emergency and haven’t had a chance to work on this. Today I am able to get the picture to save in the “local” directory in media/local/mailbox_snapshot. I can open the file and view it. I keep getting the error: Error: No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor. I have searched this and either can’t find the answer or don’t know what to look for. Is there a file/program that I need to install on HA? I’m using the HA OS on a rPi 4. I’ve tried npm install --save jimp
in the terminal but it doesn’t work.
Last thing: Is this the right way to reference the image locally in the image node?:
{“filename”:"/media/local/mailbox_snapshot.jpg"}
Thank you!
Also, here is the flow:
[{“id”:“ea0f41b8203694ad”,“type”:“tab”,“label”:“Mailbox Notification”,“disabled”:false,“info”:"",“env”:[]},{“id”:“12958436e6314449”,“type”:“trigger-state”,“z”:“ea0f41b8203694ad”,“name”:“Mailbox Sensor Opened”,“server”:“6119efaf.04ac5”,“version”:2,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:""},{“property”:“icon”,“value”:""}],“entityid”:“binary_sensor.mailbox_contact_sensor”,“entityidfiltertype”:“exact”,“debugenabled”:false,“constraints”:[{“targetType”:“this_entity”,“targetValue”:"",“propertyType”:“current_state”,“propertyValue”:“new_state.state”,“comparatorType”:“is”,“comparatorValueDatatype”:“str”,“comparatorValue”:“on”}],“inputs”:0,“outputs”:2,“customoutputs”:[],“outputinitially”:true,“state_type”:“str”,“enableInput”:false,“x”:130,“y”:220,“wires”:[[“f55442d00fb29faf”],[]]},{“id”:“f55442d00fb29faf”,“type”:“api-call-service”,“z”:“ea0f41b8203694ad”,“name”:“Driveway Snapshot”,“server”:“6119efaf.04ac5”,“version”:5,“debugenabled”:false,“domain”:“camera”,“service”:“snapshot”,“areaId”:[],“deviceId”:[],“entityId”:[“camera.driveway_mainstream”],“data”:"{“filename”:"/media/local/mailbox_snapshot.jpg"}",“dataType”:“json”,“mergeContext”:"",“mustacheAltTags”:false,“outputProperties”:[{“property”:“payload”,“propertyType”:“msg”,“value”:“image”,“valueType”:“flow”}],“queue”:“none”,“x”:350,“y”:180,“wires”:[[“2f041f3f90268f90”,“7a3a969c0601546b”,“6c42819836f31c7f”]]},{“id”:“50671b23966a2f2b”,“type”:“inject”,“z”:“ea0f41b8203694ad”,“name”:"",“props”:[{“p”:“payload”},{“p”:“topic”,“vt”:“str”}],“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:0.1,“topic”:"",“payload”:"",“payloadType”:“date”,“x”:160,“y”:160,“wires”:[[“f55442d00fb29faf”]]},{“id”:“2f041f3f90268f90”,“type”:“jimp-image”,“z”:“ea0f41b8203694ad”,“name”:“Picture Crop”,“data”:"{“filename”:"/media/local/mailbox_snapshot.jpg"}",“dataType”:“json”,“ret”:“b64”,“parameter1”:“50”,“parameter1Type”:“num”,“parameter2”:“50”,“parameter2Type”:“num”,“parameter3”:“100”,“parameter3Type”:“num”,“parameter4”:“100”,“parameter4Type”:“num”,“parameter5”:"",“parameter5Type”:“msg”,“parameter6”:"",“parameter6Type”:“msg”,“parameter7”:"",“parameter7Type”:“msg”,“parameter8”:"",“parameter8Type”:“msg”,“sendProperty”:“payload”,“sendPropertyType”:“msg”,“parameterCount”:4,“jimpFunction”:“crop”,“selectedJimpFunction”:{“name”:“crop”,“fn”:“crop”,“description”:“crop to the given region”,“parameters”:[{“name”:“x”,“type”:“num”,“required”:true,“hint”:“the x coordinate to crop form”},{“name”:“y”,“type”:“num”,“required”:true,“hint”:“the y coordinate to crop form”},{“name”:“w”,“type”:“num”,“required”:true,“hint”:“the width of the crop region”},{“name”:“h”,“type”:“num”,“required”:true,“hint”:“the height of the crop region”}]},“x”:590,“y”:180,“wires”:[[“7d6d31443862c01a”,“19fe979485d6a79b”]]},{“id”:“7d6d31443862c01a”,“type”:“api-call-service”,“z”:“ea0f41b8203694ad”,“name”:“Notify Mike”,“server”:“6119efaf.04ac5”,“version”:5,“debugenabled”:false,“domain”:“notify”,“service”:“mobile_app_nacho”,“areaId”:[],“deviceId”:[],“entityId”:[],“data”:"{“title”:“Mailbox Opened”,“message”:“Mailbox Opened”,“data”:{“attachment”:{“content_type”:“jpeg”,“uri”:“media-source://media_source/local/mailbox_snapshot.jpg”}}}",“dataType”:“json”,“mergeContext”:"",“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:770,“y”:180,“wires”:[[]]},{“id”:“19fe979485d6a79b”,“type”:“image viewer”,“z”:“ea0f41b8203694ad”,“name”:"",“width”:160,“data”:“payload”,“dataType”:“msg”,“active”:true,“x”:770,“y”:240,“wires”:[[]]},{“id”:“25f256114d171191”,“type”:“api-call-service”,“z”:“ea0f41b8203694ad”,“name”:“Notify Mike”,“server”:“6119efaf.04ac5”,“version”:5,“debugenabled”:false,“domain”:“notify”,“service”:“mobile_app_nacho”,“areaId”:[],“deviceId”:[],“entityId”:[],“data”:"{“title”:“Mailbox Opened”,“message”:“Mailbox Opened”,“data”:{“attachment”:{“content_type”:“jpeg”,“uri”:“media-source://media_source/local/mailbox_snapshot.jpg”}}}",“dataType”:“json”,“mergeContext”:"",“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:710,“y”:60,“wires”:[[]]},{“id”:“6c42819836f31c7f”,“type”:“debug”,“z”:“ea0f41b8203694ad”,“name”:“debug 1”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:"",“statusType”:“auto”,“x”:660,“y”:320,“wires”:[]},{“id”:“7a3a969c0601546b”,“type”:“delay”,“z”:“ea0f41b8203694ad”,“name”:"",“pauseType”:“delay”,“timeout”:“1”,“timeoutUnits”:“seconds”,“rate”:“1”,“nbRateUnits”:“1”,“rateUnits”:“second”,“randomFirst”:“1”,“randomLast”:“5”,“randomUnits”:“seconds”,“drop”:false,“allowrate”:false,“outputs”:1,“x”:540,“y”:60,“wires”:[[“25f256114d171191”]]},{“id”:“6119efaf.04ac5”,“type”:“server”,“name”:“Home Assistant”,“version”:4,“addon”:true,“rejectUnauthorizedCerts”:true,“ha_boolean”:“y|yes|true|on|home|open”,“connectionDelay”:true,“cacheJson”:true,“heartbeat”:false,“heartbeatInterval”:30,“areaSelector”:“friendlyName”,“deviceSelector”:“friendlyName”,“entitySelector”:“friendlyName”,“statusSeparator”:"at: ",“statusYear”:“hidden”,“statusMonth”:“short”,“statusDay”:“numeric”,“statusHourCycle”:“h23”,“statusTimeFormat”:“h:m”}]