Giter Site home page Giter Site logo

cloudy-toast's Introduction

Cloudy with a chance of Toast

Toaster Stationary box for the masses... IN THE CLOUD

License

Hardware

Setup

Cert / AWS

Create the src/main.h file based on src/main.h.example with the relevant information for your project and save it.

#ifndef MAIN_H

// Wifi Details
const char *ssid = "YourWifiSSID";
const char *password = "YourWifiPassword";

const String thing_id = "YourThingID";

// AWS MQTT Details
char *aws_mqtt_server = "YourAWSThingID.iot.us-east-1.amazonaws.com";
char *aws_mqtt_client_id = "YourMQTTClientID";
char *aws_mqtt_thing_topic_pub = "Your/MQTT/Topic";
char *aws_mqtt_thing_topic_sub = "Your/MQTT/Topic";

#endif

Uploading Certificates

You will also need to create the cert files based on the output from the CloudFormation deploy of the vending machine

openssl x509 -in certs/certificate.pem.crt -out data/cert.der -outform DER
openssl rsa -in certs/private.pem.key -out data/private.der -outform DER
openssl x509 -in certs/root-CA.pem -out data/ca.der -outform DER

Then upload the certificates using SPIFFS

pio run -t uploadfs

MQTT Providers

AWS IoT

For more information on AWS IoT, check out the AWS IoT Setup guide

Platform IO

This project is build and run with PlatformIO. The library dependencies can be found in the platformio.ini file. Below is the current configuration targetting the NodeMCU varient of the ESP8266 development board.

[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino
monitor_speed = 115200

lib_deps =
    [email protected]
    [email protected]

Audio Encoding

The audio clip within the /audio directory is used in main.h. This byte stream cannot exceed the Program Memory size of the microcontroller you have chosen to use.

The tutorial on setting up the audio clip for encoding can be founds here: http://highlowtech.org/?p=1963. It's important to note that you need a WAV/MP3 with a sample rate of 8Khz and a bit rate of 16Khz.

There's a copy of the EncodeAudio.exe binary in the /audio directory also incase the site mirror goes down.

cloudy-toast's People

Contributors

t04glovern avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.