Skip to content

alessandro-ooo/lcd1602-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


LCD-data-getter software

Simple software to comunicate with your software, request time, date and weather forecast. This repository only works with the LCD-data-getter, you can find it here.


About The Project

View Demo

There are a lot of modern digital clocks available on the internet or in physical store, even good-looking ones. Though I've decided to create this software to comunicate with my arduino board and learn-by-doing how everything works with embedd softwares. This software is by no means complete AND/OR indicated for professional use, it has to be considered as amateur project, hobbist software.

How does everything work?

Basically, when the board is connected through USB to the computer, it "awaits" for data. It means that the arduino board sends (through serial communication) "" string to the software, the software "reads" and gets the weather data through LAT and LOG of your location, which it would be hard coded in the software. The weather forecast is gathered through an API call to https://openweathermap.org/ every ten minutes using the CURL library. Once the weather data is stored in Arduino, the board will keep communicating to the software "" string every second and will receive time and date to display on the LCD. It'll be possible to display the weather pressing a button.

Docs

CPPCOMM

void CPPCOMM(String message)

Sends message to the software. example:

void CPPCOMM(String "<weather>")

LCDWrite

void LCDWrite(String text, int line, bool clear = false)

Writes text on the LCD. example:

LCDWrite("Hello World", 0, false);
LCDWrite("I'm on the second row!", 1, false);
LCDWrite("Now wipe them all!", 0, true);

refreshWeather

bool refreshWeather()

Refresh weather data every ten minutes as indicated by https://openweathermap.org/

retrieveData

bool retrieveData()

Asks for time and date to the software and formats it to print two strings on the LCD.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages