Skip to content

venoc/autonomousMachines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Economous Machines

Set up

IOTA-Network

For testing: Set up private IOTA-Network https://github.com/iotaledger/compass https://github.com/iotaledger/compass/blob/master/docs/HOWTO_private_tangle.md

  • config.json
{
  "seed": "WUHHNVTUVGXNWKONKFHDITCWXISCOWOOTCSXUJEHRGJ9FDXNJDWUUQXGQEQHSSVSRISKKLBMQIS9IKNOW",
  "powMode": "CURLP81",
  "sigMode": "CURLP27",
  "security": 1,
  "depth": 16,
  "milestoneStart": 0,
  "mwm": 1,
  "tick": 20000,
  "host": "http://localhost:14267"
}
  • iota.ini
[IRI]
PORT = 14267
UDP_RECEIVER_PORT = 14600
NEIGHBORS = udp://localhost:14601
IXI_DIR = ixi
DEBUG = false
DB_PATH = db
ZMQ_ENABLED = true
ZMQ_PORT = 5556
API_HOST = 0.0.0.0
REMOTE-LIMIT-API = "addNeighbors"
  • 02_run_iri.sh
#!/bin/bash

scriptdir=$(dirname "$(readlink -f "$0")")
. $scriptdir/lib.sh

load_config

COO_ADDRESS=$(cat $scriptdir/data/layers/layer.0.csv)

docker pull iotaledger/iri:latest
docker run -d -t --net host --rm -e DOCKER_IRI_REMOTE_LIMIT_API="" -v $scriptdir/iota.ini:/iri/conf/iota.ini -v $scriptdir/db:/iri/data -v $scriptdir/snapshot.txt:/snapshot.txt -p 14265 -p 5555 iotaledger/iri:latest \
       --testnet \
       --remote \
       --testnet-coordinator $COO_ADDRESS \
       --mwm $mwm \
       --milestone-start $milestoneStart \
       --milestone-keys $depth \
       --snapshot /snapshot.txt \
       --max-depth 1000 $@ \
       -c /iri/conf/iota.ini

MongoDB

Install MongoDB for organizing the addresses. https://docs.mongodb.com/manual/installation/#tutorial-installation

Required Software

Node.js und NPM

Initialise

Folgende Punkte müssen auf der Konsole im Ordner prototyp ausgeführt werden.

  1. Run npm install in ./frontend and ./iota
  2. Run the IOTA-Node
  3. If your Node is running on other ports than set before, change it also in ./iota/config.json
  4. Set your the IP of your IOTA-Node in the ./index.html, if you use a IOTA-Node, wich is not set up like shown, the seed has also to be updated
  5. Start the IOTA-Hub cd iota && node server.js
  6. Start the Frontend of the charger and the turbine cd charger_frontend && http-server cd turbine_frontend && http-server

Usage

Use the web based interface on http://localhost:8080 and http://localhost:8081

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published