Skip to content

It shows the weather using OpenWeather.org data based on a position acquired by ip-api.com

Notifications You must be signed in to change notification settings

ckevar/ErikaOS-OnlineWeatherStation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ErikaOs-OnlineWeatherStation

It drags weather information from OpenWeather.org using location based on ip-api.com.

Hardware

It's a STM32f407-discovery using std library mounted over a dicover-more extension board. This board also includes a LCD. The ESP8266 is connected through UART in the COM1 (USART6 on the discovery PC6-PC7 pins) on the std library. ESP8266's reset/GPIO0/GIPO2/Enable pin are fixed voltage, meaning they are not connected to any STM32's GPIOS.

How to run/flash it

if the hardware is ready, The file c_mX.bin can be flashed as follows:

$ st-flash write c_mX.bin 0x8000000

Recompile

In order to recompile you need to download ERIKA2.x-OS from https://www.erika-enterprise.com/index.php/download/erika-v2.x.html Once Erika is intall, you only need the Erika-CLI not the whole Eclipse to work. So, everything usefull executable you need is under the evidence folder.

Step 1

Generate files from configuration file conf.oil

$ erika-gen /path/where/Erika-CLI/is/installed/Erika-CLI/ conf.oil .

step 1

add usr.mk inside makefile

$ nano makefile

in the first line write:

$ include usr.mk

step 3

You also need to install gcc-arm-none-eabi. Edit usr.mk, to address where the gcc-arm-none-eabi compiler is installed

$ nano usr.mk

Locate the line that starts with GNU_ARM_ROOT and change it by the path where your compiler is installed.

Requirements

  • Erika2.x OS (the operating system of the board)
  • gcc-arm-none-eabi (to compile the project)
  • stlink (to flash the board)

Releases

No releases published

Packages

No packages published

Languages