Code Monkey home page Code Monkey logo

vzero's Introduction

vzero

VZero - the Wireless zero-config controller for volkszaehler.org

Build Status

Plugins

VZero has an extensible plugin framework. Out of the box the following sensor plugins are supported:

  • analog reading (e.g. battery voltage)
  • DHT (temperature and humidity)
  • 1wire (temperature)
  • wifi (signal strength)

Already planned is support for IO events (S0).

API description

The VZero frontend uses a json API to communicate with the Arduino backend.

Actions

  • /api/wlan set WiFi configuration (GET)
  • /api/restart restart (POST)
  • /api/settings save settings (restarts) (POST)

Other services

  • /api/scan WiFi scan (GET)
  • /api/status system health (GET)
  • /api/plugin overview of plugins and sensors (GET)
  • /api/<plugin_name>/<sensor_address> individual sensors (GET)

Screenshots

Welcome Screen

After initial startup, the welcome screen allows to customize WiFi credentials: Welcome Screen

In addition, the Volkszaehler middleware can be configured- either connecting to http://demo.volkszaehler.org which is the default or any other middleware.

Home Screen

The home screen presents an overview of the configured sensors: Home Screen

Sensors Screen

The sensors screen is used to connect available sensors to the middleware: Sensors Screen

Status Screen

The status screen shows health information of the VZero and allows to restart the device: Sensors Screen

vzero's People

Contributors

andig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vzero's Issues

IOT project

hi , I was wondering if you have any image or video of your project performance in action?do you have lunch the IOT project

Plugin's config not found. Missing .config in SPIFFS

In DHTPlugin.cpp , function loadConfig() fails due to a missing config file in SPIFFS.
What is the structure of dht.config that needs to be uploaded in SPIFFS?

DHTPlugin::DHTPlugin(uint8_t pin, uint8_t type) : _dht(pin, type), Plugin(2, 2) {
DEBUG_MSG("dht", "plugin started\n");
loadConfig();
_dht.begin();
DEBUG_MSG("dht", "_dht.begin()\n");
}

In Plugin.cpp, here is the loadConfig() function

bool Plugin::loadConfig() {
File configFile = SPIFFS.open("/" + getName() + ".config", "r");
if (configFile.size() == _size) {
DEBUG_MSG(getName().c_str(), "loading config\n", _size);
configFile.read((uint8_t*)_devices, _size);
}
else if (configFile.size() == 0)
DEBUG_MSG(getName().c_str(), "config not found\n", _size);
else
DEBUG_MSG(getName().c_str(), "config size mismatch\n", _size);

for (int8_t sensor = 0; sensor<getSensors(); sensor++)
if (strlen(_devices[sensor].uuid) != UUID_LENGTH)
_devices[sensor].uuid[0] = '\0';

configFile.close();
return true;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.