dokeeffe / cloud-rain-monitor Goto Github PK
View Code? Open in Web Editor NEWDevice to measure sky conditions (rain and cloud) for an astronomical observatory
Device to measure sky conditions (rain and cloud) for an astronomical observatory
Noticed that the time stamp isn't being recorded correctly.
root@heidenrod-obs:/home/cloud_rain# date
Tue Aug 22 21:01:20 CEST 2017
http:
{"readingTimestamp": "2017-08-22 19:00:26", "outsideTemp": 16.99, "skyTemp": 4.71, "rain": false}
Hello,
I have the latest indi lib installed.
ii libindi-data 1.4.1+r3089201705200923ubuntu16.04.1 all Instrument-Neutral Device Interface library -- shared data
ii libindi-dev 1.4.1+r3089201705200923ubuntu16.04.1 armhf Instrument-Neutral Device Interface library -- development files
ii libindi1:armhf 1.4.1+r3089201705200923ubuntu16.04.1 armhf Instrument-Neutral Device Interface library -- shared library
An trying to compile your driver gives me the following error:
`root@odroid:/home/cloud-rain-monitor/indi-driver# ./build.sh
-- The CXX compiler identification is GNU 5.4.0
-- The C compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'libindi'
-- Found libindi, version 1.4.1
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find INDI (missing: INDI_LIBRARIES) (found version "1.4.1")
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
cmake_modules/FindINDI.cmake:66 (find_package_handle_standard_args)
CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/cloud-rain-monitor/indi-driver/build/CMakeFiles/CMakeOutput.log".
make: *** No rule to make target 'install'. Stop.
root@odroid:/home/cloud-rain-monitor/indi-driver#`
Stephane
Would you have any idea why after a while running (let's say an hour or so), it is no longer responding to curl requests?
I have to restart the weatherMicroService.py script
I'm testing the charts again and there is something odd about cloud coverage.
At the present time, it is cloud less, not a single one in sight.
the report shows:
{"rain": false, "readingTimestamp": "2017-08-22 09:13:38", "outsideTemp": 24.77, "skyTemp": 14.79}
the code is:
def _calculate_cloud_cover(self, sky, ambient):
'''
Needs work. +22ambient and -2.5sky and sky was 90% clear
:param sky:
:param ambient:
:return:
'''
cc = ((sky+20)*7)-ambient
if cc > 100:
cc = 100
if cc < 10:
cc = 0
return cc
So from the above report:
cc= ((14.79+20)*7)-24.77
cc= 218.76
cc > 100 so it's cloudy but it's not cloudy out there right now, blue sky.
I'm thinking of building a cloud sensor for my weather station a and discovered your solution. It's pretty simple and cheap to build, but I'm not sure about the exact type of the sensor. Are you using the 90° FOV version or another one? They're available down to 5°. Is that parameter important? Also, is the sensor orientation important? So is pointing exactly upwards required, or any angle suffices where the sky view is clear WRT the FOV of the sensor?
I have the following issue:
Stephanes-MacBook-Air:~$ curl http://192.168.2.212:8080/weather/current
{"outsideTemp": 27.37, "skyTemp": 25.41, "rain": true, "readingTimestamp": "2017-08-22 08:24:09"}
{"outsideTemp": 27.39, "skyTemp": 25.43, "rain": false, "readingTimestamp": "2017-08-22 08:24:12"}
{"outsideTemp": 27.39, "skyTemp": 25.43, "rain": false, "readingTimestamp": "2017-08-22 08:24:12"}
{"outsideTemp": 27.39, "skyTemp": 25.43, "rain": false, "readingTimestamp": "2017-08-22 08:24:12"}
{"outsideTemp": 27.39, "skyTemp": 25.11, "rain": true, "readingTimestamp": "2017-08-22 08:24:15"}
The sensor is dry, it's cloud less.
As you can see, it seems to switch from false to true regardless.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.