Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SmartHome Control Center

En enkel JavaFX-applikasjon for å administrere smarte enheter (lys, termostat, sensor) med liste til venstre, detalj/kontrollpanel i midten og statuslinje nederst.

An English summary is included below.

Merk: Selve koden (klassenavn, variabler, metoder) er på engelsk, mens forklarende kommentarer er på norsk.


Struktur (no)

Kildekode ligger i Maven-modulen smarthome:

smarthome/src/main/java/com/smarthome/
├── App.java              # Inngangspunkt (JavaFX Application)
├── model/                # SmartDevice, Light, Thermostat, Sensor, (Heating, SecurityCamera)
├── controller/           # MainController, DeviceController
├── view/                 # MainLayout, DeviceLayout
└── util/                 # DeviceManager (holder ObservableList<SmartDevice>)

Kjøring (no)

I IntelliJ:

  • Åpne prosjektet med smarthome/pom.xml som Maven-prosjekt.
  • Kjør Maven-målet javafx:run eller bruk Run-konfigurasjon som peker på dette.

Fra terminal:

cd smarthome
mvn javafx:run

Hvis IntelliJ ikke gjenkjenner prosjektet:

  • Åpne smarthome/pom.xml direkte i IntelliJ og importer som Maven-prosjekt.

Push til main bare når alt fungerer og henger sammen – ellers jobb i din egen branch.


Structure (en)

Source code lives in the Maven module smarthome:

smarthome/src/main/java/com/smarthome/
├── App.java              # Entry point (JavaFX Application)
├── model/                # SmartDevice, Light, Thermostat, Sensor, (Heating, SecurityCamera)
├── controller/           # MainController, DeviceController
├── view/                 # MainLayout, DeviceLayout
└── util/                 # DeviceManager (holds ObservableList<SmartDevice>)

Running (en)

In IntelliJ:

  • Open the project using smarthome/pom.xml as a Maven project.
  • Run the Maven goal javafx:run or create a Run configuration that calls it.

From the terminal:

cd smarthome
mvn javafx:run

If IntelliJ does not recognize the project:

  • Open smarthome/pom.xml in IntelliJ and let it import the Maven project.

Note: All code (class names, variables, methods) is written in English, while explanatory comments are in Norwegian.

Only push to main when everything works and is consistent – otherwise work on your own branch.

About

OBJ2000- Objektorientert programmering 1

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Used by

Contributors

Languages