Author Topic: Android Phone for webcam and wx station data storage/distribution  (Read 1949 times)

0 Members and 1 Guest are viewing this topic.

Offline quailvalleywx

  • Senior Member
  • **
  • Posts: 67
Android Phone for webcam and wx station data storage/distribution
« on: September 27, 2018, 11:22:17 AM »
Using an old Android phone I've added a webcam and wx data adjust/storage/distribution for my Ambient Weather WS 1400 IP.
Webcam:
- Uses builtin rear phone camera to generate images.
- Captions current wx conditions onto webcam image.
- Graph overlay of last 6 days of temperature, dew point using google charts.
- Uploads to WU, frequency variable based on cloud (solar) dynamics.
- Latest captioned/overlayed image hosted for WeatherCloud page access.
- Creates daily Time Lapse videos and stores them on google drive https://tinyurl.com/yctgx5mn.

Wx Data:
- WS 1400 data retained for ~7 days via mysql database on phone (Bit Web Server Android app).
- Non-linear correction for humidity and barometric pressure sensors (Observer IP only provides offset corrections).

Wx Data Distribution:
- 5 hosting services - WU, PWS, WeatherCloud, OpenWeatherMap, and CWOP.

There are a bunch of cheap, cracked screen, old Android phones being dumped on ebay.  Re-tasking one of these phones as a webcam and web server seemed like a good budget thing to do - except it takes a lot of hours for a custom rain-proof install and software install/development/tweaks.  For a hobby though consuming time was OK :)  Cost - about ~$35 for the phone, ~$10 for mounting, ~$6 for a couple Google Play Store apps, and again plenty of hours for custom mount building and software installs / modifications.

More details and code are on github https://github.com/mrcodegh.  If you copy/use the code you will need to edit it with your local IP addresses, wx service provider station info, and database login info.  There is no simple install and having some previous programming experience would help.  Once the phone is mounted and connected to WiFi remote control is done via wireless adb and screen control via the TeamViewer app.

Mike
WS-1400-IP, Galaxy S3 for cloud cam and Web Server
QV Website | Source Code | WU | WC | PWS | MesoWest/CWOP

Offline galfert

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 6822
Re: Android Phone for webcam and wx station data storage/distribution
« Reply #1 on: September 27, 2018, 01:01:06 PM »
Very creative use of hardware. Nice job.
Ecowitt GW1000 | Meteobridge on Raspberry Pi
WU: KFLWINTE111  |  PWSweather: KFLWINTE111
CWOP: FW3708  |  AWEKAS: 14814
Windy: pws-f075acbe
Weather Underground Issue Tracking
Tele-Pole

Offline quailvalleywx

  • Senior Member
  • **
  • Posts: 67
Re: Android Phone for webcam and wx station data storage/distribution
« Reply #2 on: September 27, 2018, 08:08:21 PM »
Very creative use of hardware. Nice job.
Thanks.  This started as just some way to get some webcam images to WU and then expanded from there.  Lots of learning along the way like don't put a phone that doesn't auto-boot on external power at the top of pole - one that was a pain to take down in freezing weather when it dropped WiFi.
WS-1400-IP, Galaxy S3 for cloud cam and Web Server
QV Website | Source Code | WU | WC | PWS | MesoWest/CWOP

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Re: Android Phone for webcam and wx station data storage/distribution
« Reply #3 on: September 27, 2018, 08:42:12 PM »
Get an old phone with the baro and temp sensors, add a mic port Anemometer and POOF!  Android weather station.  :) 
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!