Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic tutorial 2

This is a barebone resin.io application to demonstrate persisting data through updates and using environment variables.

It's a basic Flask app that uses psutil to read CPU usage on the device and save it to an SQL database using Flask-SQLAlchemy. That db is stored in /data as this directory is essentially a docker data VOLUME and is therefore maintained through container restarts.

Note: that this folder is not mounted when your project is building on our build server, so you can't access it from your Dockerfile. It is only created once your project is deployed to the actual devices.

The interval is set by resin.io environmental variable INTERVAL(defaults to 20s).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.