Using AWS Lambda and Golang to access real-time weather station data
What is the ideal server room temperature?
Easy environmental monitoring for a server room
Steen Vastgoed and Reporter, a rock-steady duo!
FKT and Reporter: match made in cold room
A weather station with multiple sensors
A power failure detector for your construction site
Combined pressure and temperature measurement
Using a weather station on your construction site
Roof climate research
Sustainable irrigation with a water usage monitoring device
Green roof monitoring
What is the ideal temperature for a cold room?
How to install a weather station
Industrial odour monitoring with a weather station
How groundwater level affects cracks and tears in buildings
4G and solar-powered IoT device: Revolutionizing remote monitoring with Reporter
4 Things to look for in a temperature sensor with API
Housing requirements for a poultry farm: the complete guide
Monitoring heat treatment in cargo containers
How to prevent and detect a barn fire in a pig pen
Poultry monitoring and alarm
Professionally farming mealworms: how to create an ideal growing environment?
Safeguarding poultry from heat stress: how to recognize and prevent it
Sustainable blueberry farming: a case study
Connecting a limit switch to the cloud
A dew point sensor for remote monitoring
The ultimate guide to potato storage monitoring
How KuNa Fish makes fish temperature monitoring a piece of cake
CO2 poisoning in swine and other kinds of pig suffocation
Wind monitoring and wind speed measurement
Halal HACCP: temperature monitoring in a factory
What is dew point?
Why you should monitor relative humidity in curing concrete
Monitoring archive temperature and relative humidity
Weather monitoring: measuring wind at a festival site
Measuring dew point temperature and relative humidity for glue at construction sites
A professional remote monitoring rain gauge with digital measurements
How to tackle the 7 principles of HACCP in restaurants and food companies with simple technology
Sensors
General Use & Installation
Water level sensor to measure the water level in a container or well
A Weather Station with API
Effortless groundwater level monitoring
How is Reporter powered?
How Crodeon helps research companies save time with remote monitoring and data logging
Measuring air quality and insulating performance for Total Value Wall
How Sint-Rembert optimises ventilation and CO2 in schools
Weather Station Maintenance
10 things to consider when buying a professional weather station
Why temperature control is incomplete without remote monitoring
In this blogpost we will try to access the data from a Crodeon weather station from the cloud using the Crodeon Rest API. The cloud technology that we will explore in this example is AWS Lambda and Go.
About AWS Lambda and the Crodeon weather station
AWS Lambda is a serverless, event-driven compute service on which you can run code for almost any type of application or backend service without the need to provision or manage servers. Visit this page for more info about AWS Lambda.
The Crodeon weather station is becoming a popular weather measurement tool, mainly because of its easy deployment, mobile usability and affordable price. The weather station offers a real-time connection to the cloud and out-of-the-box API functionality to integrate the data in your own software. Besides wind, rain, temperature and humidity you can also add more exotic sensors to measure CO2, air quality, water level, pressure, etc… Visit this page for more info about the Crodeon weather station.
Create your AWS Lambda function and trigger
First of all we create a new function called weather-data. For this example we will use Go as our programming language.
Next we have to add a trigger. This is how we let AWS invoke the function.
For this example we will choose an API Gateway, but AWS offers some interesting alternatives like a Shopify purchase event or an Amazon Alexa trigger.
Now we can see this API gateway will act as a trigger for our newly created lambda function.
Writing the Lambda code to call weather data
The web code editor of AWS doesn’t support Go, so we will write our code in Visual Studio Code and upload it as a .zip file.
The zipped file and the contents must have the name of the handler, in this case “main”.
Now it’s time to test our code. Click the Test tab and create a new test event. In this example we will choose the API-gateway-AWS-proxy template.
Enter the Reporter ID as the path and the x-api-key and authentication credentials in the headers of the event document template that AWS presents us. Contact Crodeon at info@crodeon.com to get your free demo API credentials.
The test is successful and the body data contains the values we needed. For this demo we only called 4 of the weather parameters as well as the date and time in UTC format.
Start your own sensor project
That’s it! We hope this was useful for some of you. Don’t hesitate to contact us for any further questions about the Crodeon weather station with API. Visit our website to read more about the Reporter, the world’s easiest sensor device for real-time remote monitoring.
Click here to download the Golang source code and the build file that we used for this demo.
As Co-Founder & CEO at Crodeon, Jonathan has a broad knowledge about how sensors are changing our daily lives. Over the past 7 years he has been talking to customers in many sectors, from agriculture to industry and everything in between. Jonathan knows the ins and outs of Internet of Things and what keeps our customers awake at night.
Server rooms or data centres have an ideal temperature and humidity range. In this blog we'll be discussing what that range is and why it's so important.
Server rooms or data centres have an ideal temperature and humidity range. In this blog we'll be discussing what that range is and why it's so important.
The art of sustainable server room management is keeping your room at the highest possible temperature without risking your systems to overheat. This is where server room monitoring comes in,...
The art of sustainable server room management is keeping your room at the highest possible temperature without risking your systems to overheat. This is where server room monitoring comes in,...
Steen Vastgoed uses Reporter to continuously monitor the groundwater levels of various project sites. This both in the preliminary phase to a permit and during the execution of the construction...
Steen Vastgoed uses Reporter to continuously monitor the groundwater levels of various project sites. This both in the preliminary phase to a permit and during the execution of the construction...
Jef Ooms of FKT shares his personal experience of using Reporter for several years. Read more to learn how Reporter helps him keep his clients protected against temperature related incidents.
Jef Ooms of FKT shares his personal experience of using Reporter for several years. Read more to learn how Reporter helps him keep his clients protected against temperature related incidents.