AllskyTeam / allsky

A Raspberry Pi operated Wireless Allsky Camera
MIT License
1.17k stars 181 forks source link

Module AllskyAI[BUG] #3668

Closed ettoreribaudo closed 4 months ago

ettoreribaudo commented 4 months ago

I write in module one problem but nothing response. Last week it worked but now it always gives me fake but the photos are uploaded to the allskyAI.com website

I uninstalled and reinstalled the module but still false

Expected behaviour A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Allsky Information:

OS: Bullseye Allsky Version: last Pi model: PI4 B 4 GB Camera: imx462 PI Sensors: MLX90614 BME280 TLS2591 ai py

EricClaeys commented 4 months ago

Please run grep ERROR /var/log/allsky.log and let us know what you get.

ettoreribaudo commented 4 months ago

Thanks Eric:

Jun  2 07:46:14 allsky allsky[16700]: ERROR: Field 'RPi imx290_60.00_fps' is outside of the image
Jun  2 07:46:14 allsky allsky[16700]: ERROR: Cannot use format ':n' on Number variables like ${CLOUDCOVER} (value=Partial).
Jun  2 07:46:34 allsky allsky[16828]: ERROR: Module allsky_ai.py failed on line 224 - invalid literal for int() with base 10: 'No version file found, probably not created yet'
...
Jun  2 08:44:17 allsky allsky[38357]: ERROR: Field 'RPi imx290_60.00_fps' is outside of the image
Jun  2 09:20:38 allsky allsky[1889]: ERROR: Module allsky_ai.py failed on line 224 - invalid literal for int() with base 10: 'No version file found, probably not created yet'
Jun  2 09:20:38 allsky allsky[1889]: ERROR: Module allsky_ai.py will be disabled, it took 2141.29s max allowed is 30s
Jun  2 09:20:38 allsky allsky[1889]: ERROR: Field 'RPi imx290_60.00_fps' is outside of the image
Jun  2 09:20:38 allsky allsky[1889]: ERROR: Cannot use format ':n' on Number variables like ${CLOUDCOVER} (value=Cloudy).

grep: /var/log/allsky.log: il file binario corrisponde

EricClaeys commented 4 months ago

For the first error, edit ~/allsky/config/overlay/config/overlay.json and set the "x", "y", "tlx" and "tly" to 500 then reload the Overlay Editor and move the field to where you want.

For the second error fix the Format for that field.

For the 3rd error I suggest installing the newest allsky_ai module, and seeing if it gives the same ERROR. If it does contact the module author Christian Kardach at https://www.allskyai.com

ettoreribaudo commented 4 months ago

"label": "${CAMERA_TYPE} ${CAMERA_MODEL}", "x": 419, "y": 3002, "id": "oe-field-0", "fontsize": 44, "strokewidth": 0, "sample": "RPi HQ", "tlx": 10, "tly": 2980 This is in Overlay.json

i modify to: "label": "${CAMERA_TYPE} ${CAMERA_MODEL}", "x": 500, "y": 500, "id": "oe-field-0", "fontsize": 44, "strokewidth": 0, "sample": "RPi HQ", "tlx": 500, "tly": 500

        Is correct?

        For second point i corrected n to text.
        Regards.
        Ettore
ettoreribaudo commented 4 months ago

AllSkyAi is the last. Ettore

ettoreribaudo commented 4 months ago

I corrected 1 and 2, i send email to Christian. Thanks. Ettore

ettoreribaudo commented 4 months ago

For the first error, edit ~/allsky/config/overlay/config/overlay.json and set the "x", "y", "tlx" and "tly" to 500 then reload the Overlay Editor and move the field to where you want.

For the second error fix the Format for that field.

For the 3rd error I suggest installing the newest allsky_ai module, and seeing if it gives the same ERROR. If it does contact the module author Christian Kardach at https://www.allskyai.com

I resolved error, i upgrade pillow with: pip install --upgrade Pillow, are is ok ![Uploading resolved.png…]()

EricClaeys commented 4 months ago

Did you let Christian know how you fixed the problem? He'll probably need to change the module.

You made the overlay.json changes correctly. Note the "y" values was 3002 which is wider than the imx290 sensor at 1920, which is why that field was off the image.

In your initial post you said you have a imx462 camera but the log files say you have the imx290 60.00 fps which I believe is an Arducam model. Why the difference?

ettoreribaudo commented 4 months ago

Yes, I notified Christian as soon as I had solved it. The model is IMX462 innomaker, you have to use it bullseye sees it as IMX290

EricClaeys commented 4 months ago

Do you have a URL to the camera?

Would you please run libcamera-still --list-cameras ?

Thanks

ettoreribaudo commented 4 months ago

libcamera-still --list-cameras Available cameras

0 : imx290 [1920x1080 12-bit RGGB] (/base/soc/i2c0mux/i2c@1/imx290@1a) Modes: 'SRGGB10_CSI2P' : 1280x720 [30.00 fps - (65535, 65535)/65535x65535 crop] 1920x1080 [30.00 fps - (65535, 65535)/65535x65535 crop] 'SRGGB12_CSI2P' : 1280x720 [30.00 fps - (65535, 65535)/65535x65535 crop] 1920x1080 [30.00 fps - (65535, 65535)/65535x65535 crop]