SmartSpace is a Java Enterprise Web Application for manage your smart home or other IoT staff.
![](Banner11.png =150x150)
- authorization and role based authentication
- zones (parts of controlled object) include triggers and cameras
- triggers generate events
- Telegram Bot API used for managing the system
- include REST API to communicate with client (Frontend)
- take photo from camera
- show info from zones
- arming/disarming zones
- receiving notifications
- play radio
- say something
PostgerSQL is recommended.
CREATE USER smart WITH PASSWORD 'Hd8...';
CREATE DATABASE smartspace;
GRANT ALL PRIVILEGES ON DATABASE smartspace to smart;
Restore database from backup
psql -U smart smartspace < smart.bak
Use the same platform version (x64 or x86) for VLC and JRE
Configure your properties - application.properties:
server.port=8088
spring.datasource.url=jdbc:postgresql://free.rublin.org:5432/smart
spring.datasource.username=smart_u
spring.datasource.password=DP...
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.platform=postgresql
# Windows tmp path
tmp.directory=C:\\tmp\\
# Linux tmp path
# tmp.directory=/tmp/
radio=http://192.99.147.61:8000
mail.password=Z...
mail.smtp=smtp.ukr.net
mail.from=sel...@ukr.net
mail.port=465
mail.login=sel...@ukr.net
mail.notification=true
telegram.bot.username=Smart Place Bot DEV
telegram.bot.token=25475...
telegram.bot=false
modem.port=COM3
modem.sms=false
modem.call_timeout=10000
weather.token=8d92...
weather.city=Kyiv
weather.lang=UA
sound.other=sound/other_alarm.wav
sound.security=sound/security_alarm.wav
sound.volume=80
java -Djna.library.path="C:\\Program Files\\VideoLAN\\VLC" -jar smartSpace.jar