Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

tinytinkerer

Members
  • Benutzer seit

  • Letzter Besuch

Alle erstellten Inhalte von tinytinkerer

  1. Hallo zusammen, ich soll Sensordaten vom RED-Brick persistieren. Kann mir da wer weiterhelfen? Ich stehe gerade voll auf dem Schlauch.//Edit hat sich erledigt: package com.company; import com.tinkerforge.IPConnection; import com.tinkerforge.BrickletAccelerometer; import java.io.*; public class Main { private static final String HOST = "localhost"; private static final int PORT = 4223; // Change XYZ to the UID of your Accelerometer Bricklet private static final String UID = "Cge"; // Note: To make the example code cleaner we do not handle exceptions. Exceptions // you might normally want to catch are described in the documentation public static void main(String args[]) throws Exception { IPConnection ipcon = new IPConnection(); // Create IP connection BrickletAccelerometer a = new BrickletAccelerometer(UID, ipcon); // Create device object ipcon.connect(HOST, PORT); // Connect to brickd // Don't use device before ipcon is connected // Add acceleration listener a.addAccelerationListener(new BrickletAccelerometer.AccelerationListener() { public void acceleration(short x, short y, short z) { PrintWriter outputfile = null; try { outputfile = new PrintWriter((new BufferedWriter(new FileWriter("Beschleunigung.txt",true)))); //replace your System.out.print("your output"); outputfile.println(+x/1000.0+";"+y/1000.0+";"+z/1000.0+";"); outputfile.println(""); }catch (IOException ioe) { ioe.printStackTrace(); }finally { if (outputfile != null){ outputfile.flush(); outputfile.close(); } } } }); // Set period for acceleration callback to 1s (1000ms) // Note: The acceleration callback is only called every second // if the acceleration has changed since the last call! a.setAccelerationCallbackPeriod(1000); System.out.println("Press key to exit"); System.in.read(); ipcon.disconnect(); } }

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.