Skip to content

awanrky/cinchring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cinchring

To run the database and web server

  • Run 'vagrant up'
  • if this is the first time running this box, you may need to manually fix a network problem
    • start the gui and see if you're getting a cloud-init-nonet error waiting for 120 seconds for network device if so...
      • wait the 120 seconds for it to give up
      • while waiting check out this thread... hashicorp/vagrant#3860
      • the message 'Waiting for network configuration...' will now show. Wait for it to give up again
      • once the login prompt shows on the gui
        • log in
        • edit the /etc/network/interfaces file
        • in the #VAGRANT-BEGIN ... #VAGRANT-END section leave the 'auto eth1' line, but remove the next two lines and then save the file
        • shut down the vm (vagrant halt)
    • if you get an authorization error when running vagrant up...
  • connect to mysql database instance on instance of vagrant machine user cinchring pw cinchring
  • change password for cinchring user
  • edit application.properties giving the new password for the cinchring user
  • ssh into the vagrant instance 'vagrant ssh'
  • cd /vagrant
  • run './mvnw spring-boot:run' to build and run the web server
  • (or you can run './mvnw clean package' to build an executable jar, and then run 'java -jar target/cinchring-0.0.1-SNAPSHOT.jar' to run the web server

To manage and edit arduinos

  • Each arduino's code and other information is kept in the project's arduino directory, under a directory for arduino name the same as the arduino
  • Any library code used should be kept in the arduino/library directory and committed to the repo
  • The arduino IDE wants code and libraries to be in the user's home, inside an Arduino directory so you have several options, two of are
    1. copy everything in the project's arduino directory into your home Arduino directory to use in the arduino IDE and back to the project to commit
    2. make a symbolic link (for example: ln -s /home/mark/projects/cinchring/arduino /home/mark/Arduino) so that the code stays in the project's arduino directory, but it also appears to be in the home Arduino directory
  • You can use your favorite editor to edit the code, but use the IDE to upload to the arduinos by turn on the external editor option in the arduino IDE settings

About

A website and REST API with a MySql database for collecting and displaying data collected by arduinos on the network.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published