Skip to content

Base setup for auto-connecting Nerves (nerves-project.org) devices

License

Notifications You must be signed in to change notification settings

tverlaan/nervous_system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nervous System

WARNING this is not secure, nodename/ip/port are fully exposed

Proof of concept Nerves project that uses custom distribution and MDNS discovery. Set environment variables (NERVOUS_SSID & NERVOUS_PSK) to make wifi work and watch as two nodes auto-connect. When you add a webinterface on port 80 you can directly go to hostname.local. Hostname is auto-generated in erlinit.config based on the boardid. Modify that if you want to have a static hostname. Two boards should not have the same hostname as that interferes with eachother.

See rel/vm.args for more details on distribution and EPMD.

Targets

Nerves applications are configured that they can produce images for target hardware by setting NERVES_TARGET. By default, if MIX_TARGET is not set, Nerves defaults to building a host target. This is useful for executing logic tests, running utilities, and debugging. For more information about targets: https://hexdocs.pm/nerves/targets.html#content

Getting Started

To start your Nerves app:

  • export NERVES_TARGET=my_target or prefix every command with NERVES_TARGET=my_target, Example: NERVES_TARGET=rpi3
  • Install dependencies with mix deps.get
  • Create firmware with mix firmware
  • Burn to an SD card with mix firmware.burn

Learn more

About

Base setup for auto-connecting Nerves (nerves-project.org) devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages