You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,3 @@
1
-
**Please note that master now requires PJON v10.0 or PJON master from 2017-12-29 or later. The current master is stable and will soon be released as v2.0.**
2
-
3
1
## ModuleInterface v2.0
4
2
ModuleInterface is an Arduino compatible library for automatic transfer of settings and values between devices, with very little programming needed for each device. Version 2.0 has been tested with PJON v10.0, please use v1.3 for PJON v9.1 or v8.2.
Copy file name to clipboardExpand all lines: examples/WebPage/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ A "module" is simply a device like Arduino Nano equipped with necessary equipmen
7
7
1. A SensorMonitor module, for example running on an Arduino Uno or Nano. This module simply reads a light sensor and reports it to the master.
8
8
2. A LightController module, for example running on an Arduino Uno or Nano. This module subscribes to the light sensor reading from the SensorMonitor, and gets settings like time interval and light limit from the Master for controlling the light. In this example it only controls the on-board LED. It reports the current light state (or or off) to the master.
9
9
3. A ModuleMasterHttp module running on an Arduino Mega (because of memory requirements) with an Ethernet shield. This will transfer settings to and from the database and outputs to the database using JSON and HTTP requests.
10
-
4. A computer with a LAMP/WAMP setup. For example  or .
10
+
4. A computer with a LAMP or WAMP setup. For example by following a tutorial like  for Linux, or using a distro like  or  for Windows.
11
11
12
12
There are two sets of modules available in this example, in the ARDUINO_SWBB and ESP8266_GUDP directories. You should run one set at a time, unless you change one of the masters to avoid conflict of IP, master prefix and module prefixes. Running multiple setups or a mixed setup is possible, but keep it simple to start with.
13
13
@@ -50,16 +50,16 @@ After modifying the network and IP addresses in the ModuleMasterHttp sketch, pro
50
50
Then add an Ethernet shield to the Mega, connect a CAT5 cable between the shield and your network switch or router, then power on.
51
51
52
52
### Installation of web server and database
53
-
Run the XAMPP or WampServer installation package.
53
+
Follow the recipe, or run the XAMPP or WampServer installation package. If you want a stable and uninterrupted system, use Linux or a server version of Windows to avoid the frequent updates and reboots of the desktop versions of Windows.
54
54
55
55
### Configuration of database
56
56
1. Start Apache and MySQL/MariaDb and open the phpMyAdmin page. Or use a similar tool, like HeidiSQL if you want to keep your htdocs directory clean from other stuff. If you use the XAMPP distro, you can start phpMyAdmin by opening ```http://localhost/applications.html``` in the browser and clicking phpMyAdmin on the top right.
57
57
2. Go to the Import tab and run the "database setup/home_control.sql" file to create the required tables. The character set must be set to UTF-8.
58
58
3. You now have the home_control database running. Data should be updated in the currentvalues table after a short while, and you can inspect this (in phpMyAdmin by clicking on the table name to refresh the data).
59
59
60
60
### Configuration of web server
61
-
1. The files from the "htdocs" folder are copied into the "C:/xampp/htdocs" folder (depending on installation). Unfortunately, XAMPP has a lot of files present here to supply phpMyAdmin etc, so it will be a mix. Some Other WAMP/LAMP distros keep the htdocs directory empty and supply database management tools like the native program HeidiSQL.
62
-
2. The db_config.php file edited to contain the selected database name, user name and password. Initially the password will be empty, so get it working before setting a password.
61
+
1. The files from the "htdocs" folder are copied into the "C:/xampp/htdocs" folder (depending on installation). Unfortunately, XAMPP has a lot of files present here to supply phpMyAdmin etc, so it will be a mix. Some Other WAMP/LAMP distros keep the htdocs directory empty and supply database management tools like the native program HeidiSQL. A LAMP setup on Linux may use /var/www/html, so this is where you should put the files in this case.
62
+
2. The db_config.php file edited to contain the selected database name, user name and password. Initially the password will be empty, so get it working before setting a password (unless you did set a password during installation).
0 commit comments