Code Monkey home page Code Monkey logo

fogwing-thirdpatry-integration-java's Introduction

Java program to send OpenWeatherMap(OWM) data to Fogwing

This repository contains a Java program, that allows you to retrieve weather data from the OpenWeatherMap API and send it to the Fogwing IoTHub API. The program can be run using Eclipse IDE.

Note: This program is specific to send OpenWeatherMap (OWM) to Fogwing. It may require additional modifications and configurations to work properly with your specific use case.

Pre-requisites:

OpenWeatherMap to Fogwing Client Program

To run the OWMToFogwingClient program in Eclipse IDE, follow the step-by-step instructions below:

Step 1: Clone the Repository

Step 2: Install and Launch Eclipse IDE

  • Visit the official Eclipse website to download the Eclipse installer and install Eclipse IDE on your machine.
  • Launch Eclipse IDE once the installation is complete.

Step 3: Import the Project

  • Click on File in the menu bar and select Open Projects from File System, in the dialog that appears, click on the "Directory" button and navigate to the location where you cloned the repository. Select the OWMFogwingAPIIntegration folder and click "Finish" to import the project into Eclipse.
  • Once the project is imported, locate the OWMToFogwingClient.java file in the Eclipse Project Explorer. It should be located in the OWMFogwingAPIIntegration package.

Step 4: Update Credentials

  • Locate the credentials.json file in OWMFogwingAPIIntegration package, open the file and you will find sections for OWM and Fogwing credentials,update the respective fields with your valid OWM and Fogwing credentials.

Note: Ensure that you provide valid OWM and Fogwing IoTHub credentials in the credentials.json file for successful data transmission.

Step 6: Run the Program

  • Right-click on the OWMToFogwingClient.java file and select Run As > Java Application from the context menu.
  • The program will start executing, and the output will be displayed in the Eclipse console.

Note: If everything goes according to the instructions mentioned above, you should see {"data":"Successfully published","description":"The Request Has Succeeded","message":"Created","statusCode":201} message displayed in the Eclipse console. In case of any errors or issues, an error message will be shown instead.

Step 7. Analyze Your Data on the Fogwing Platform

  • Now you are ready to analyze your data at Fogwing Platform portal, you can check all the data within the data storage in the portal.

Where to Find Help and Resources for Fogwing and OpenWeatherMap

Please visit https://www.fogwing.io/industrial-iot-platform/ for more information about Fogwing Industrial IoT Platform.

fogwing-thirdpatry-integration-java's People

Contributors

eldho1416 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.