Skip to content

Make raspberry pi system information via REST service using pi4j and restexpress.

License

Notifications You must be signed in to change notification settings

albahrani/pi4j-rest-sysinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release Build Quality Gate Status codebeat badge Known Vulnerabilities FOSSA Status Hits-of-Code

pi4j-rest-sysinfo | raspberry system info via rest

Make the pi4j SystemInfo implementation available via REST service using RestExpress. This project provides a plugin mechanism to add the system info services to any existing RestExpress server instance.

PROJECT INFORMATION

Project website: https://github.com/albahrani/pi4j-rest-sysinfo
Project issues list: https://github.com/albahrani/pi4j-rest-sysinfo/issues

Release builds are not yet available.

Snapshot builds are available via

  <dependency>
    <groupId>com.github.albahrani</groupId>
    <artifactId>pi4j-rest-sysinfo</artifactId>
    <version>0.0.1-SNAPSHOT</version>
  </dependency>
  ...
  <repository>
    <id>sonatype-snapshots-repo</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    <releases><enabled>false</enabled></releases>
    <snapshots><enabled>true</enabled></snapshots>
  </repository>

LICENSE

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

FOSSA Status

USAGE

Attach the SystemInfo services to a RestExpress instance.

	RestExpress server = new RestExpress();
	server.setName("Raspi System Info Server");
	RaspberrySystemInfoController controller = new RaspberrySystemInfoController();
	controller.attach(server, "/raspberry/systeminfo");
	server.bind();

REST Services

  • GET /clock Provides information about the Raspberry Pi clock frequencies (Arm, Core, DPI, EMMC, H264, HDMI, ISP, Pixel, PWM, UART, V3D and VEC).
  • GET /java Provides information about Raspberry Pi Java VM (runtime, vendor name, vendor url, version and name).
  • GET /memory Provides information about the Raspberry Pi memory (buffers, cached, free, shared, total, used and the sdram voltages).
  • GET /cpu Provides information about the Raspberry Pi cpu (architecture, features, implementer, part, revision, temperature, variant and voltage).
  • GET /os Provides information about the Raspberry Pi OS (architecture, firmware build, firmware date, name and version).
  • GET /features Provides information about the Raspberry Pi enabled features (h264, mpg2, wvc1 and hard float abi).
  • GET Provides information about the Raspberry Pi (board type, hardware, model name, processor, revision and serial).

About

Make raspberry pi system information via REST service using pi4j and restexpress.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages