0

camera_feed dashboard not working
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

camera_feed dashboard not working

by vilovyh on Sat Dec 23, 2017 2:38 pm

Hello, I have followed this tutorial step by step.

https://learn.adafruit.com/cloud-cam-co ... dafruit-io

Everything is working, I have also created dashboard for camera_feed but it shows nothing.
when I click on home and next on monitor at https://io.adafruit.com/user/monitor. I get these errors every two second: 2017-12-23 18:25:17 error saving data on user/feeds/camera_feed, value cannot be larger than 1024 bytes (1 KB) when feed history is on.

I started camera with this command: adafruit-io camera start -f camera_feed -m false -r 2.

I am so hopeless, please help me.
Attachments
errors.png
errors at adafruit/user/monitor
errors.png (136.89 KiB) Viewed 524 times

vilovyh
 
Posts: 2
Joined: Sat Dec 23, 2017 2:15 pm

Re: camera_feed dashboard not working

by btreichel on Sun Dec 24, 2017 2:51 pm

Not knowing your project; it seems that the resolution on your camera is set too high. Are you using their suggested camera, etc. Presume that this is happening every time you publish (send) the feed, and that the sens rate is 2 seconds?

btreichel
 
Posts: 79
Joined: Tue Jul 25, 2017 3:00 pm

Re: camera_feed dashboard not working

by vilovyh on Sun Dec 24, 2017 3:15 pm

I am using Raspberry pi camera module V2 and resolution of my camera is set to 320x240. Yes send rate is set to 2 seconds.

vilovyh
 
Posts: 2
Joined: Sat Dec 23, 2017 2:15 pm

Re: camera_feed dashboard not working

by btreichel on Mon Dec 25, 2017 11:51 am

Try to find where to turn the feed save off, or change the image size. Basically play around with those to get something working and then go on from there.

btreichel
 
Posts: 79
Joined: Tue Jul 25, 2017 3:00 pm

Re: camera_feed dashboard not working

by abachman on Thu Dec 28, 2017 1:33 pm

Hi vilovyh!


You're on the right track, if you're seeing the error message it means data is being sent, but the "too large" error means you'll have to turn off "Feed History" to publish (which is expected for this tutorial).

You can find the feed history setting on the details page for the feed you're working with. You can get to the feed page by clicking on the feed's name from the "Feeds" list. The history setting can be changed by clicking on "Feed History" in the right hand area of the feed page, I've circled it here:
feed-edit-screen.png
feed-edit-screen.png (67.46 KiB) Viewed 438 times


And the actual edit dialog:
feed-history-edit.png
feed-history-edit.png (13.61 KiB) Viewed 438 times


From the feed history editor, you can set history to "Off". That will mean that only the most recent data point (image, in your case) is preserved and lets you use the higher 100KB limit.


- adam

abachman
 
Posts: 229
Joined: Mon Feb 01, 2010 12:48 pm

Re: camera_feed dashboard not working

by pcpeng on Wed Sep 05, 2018 3:29 am

Does anyone know how to reduce the camera resolution to an acceptable size for the feed? It looks I cannot find related info within adafruit-io tool.

pcpeng
 
Posts: 2
Joined: Wed Sep 05, 2018 3:10 am

Re: camera_feed dashboard not working

by brubell on Wed Sep 05, 2018 10:04 am

pcpeng wrote:Does anyone know how to reduce the camera resolution to an acceptable size for the feed? It looks I cannot find related info within adafruit-io tool.

What timing! I published an updated example of using the Raspberry Pi Camera with the Adafruit IO Python Library just yesterday: https://github.com/adafruit/io-client-p ... _camera.py


You can change the resolution (if you're using picamera) by calling the camera.resolution(x, y) method

In the example, before sending the image to a feed, I resized it:
code]camera.resolution = (200, 200)
[/code]

(usage example: : https://github.com/adafruit/io-client-p ... era.py#L45)

brubell
 
Posts: 148
Joined: Fri Jul 17, 2015 10:33 pm

Re: camera_feed dashboard not working

by pcpeng on Thu Sep 06, 2018 2:44 am

Thanks for the hint. I found the resolution setting is in rpi_camera_surveillance_system.py. I set it 200x200 and it works. I can see camera feed (history off) in my adafruit Dashboard.

with picamera.PiCamera(resolution='200x200', framerate=24) as camera:
output = StreamingOutput()
#Uncomment the next line to change your Pi's Camera rotation (in degrees)
#camera.rotation = 90
camera.start_recording(output, format='mjpeg')

pcpeng
 
Posts: 2
Joined: Wed Sep 05, 2018 3:10 am

Please be positive and constructive with your questions and comments.