Giter Site home page Giter Site logo

pixela's Introduction

Pixela - Record and Track your habits or effort. All by API.

pixela

Description

About this service

2018-10-29 9 22 48

About this repository

This GitHub repository is a page for exchanging information like the following with Pixela users. (I do not put Pixela's source code here, sorry.)

  • release information
  • Specification questions, bug reports, etc.
  • About documents such as Terms of Service
  • etc.

Please feel free to use here!

How to use this repository

Check release information

Please check releases page of this repository.

Want to know the development situation and future road map

Please check Projects Page of this repository.

Communicate with developers on specifications and behaviors

Let's communicate on the issue page of this repository. Please do not hesitate to make an issue as any matter is OK (I would be happy if you try using labels at that time).

I also want to communicate in English as much as possible. I am not good at English, please think that it is study, let's communicate with confidence!

Check Terms of Service

Please check Pixela Wiki pages.

Service status (Alert index)

Pixela Goods Shop

[in Japanese] Pixela Goods Shop - SUZURI.jp (Revenue from goods sales is used for improving service.)

Support Pixela

Pixela is accepting support by Patreon. Funding from supporters is used to develop, renovate and maintain for Pixela.

For details, please see How to support Pixela by Patreon / Use Limited Features.

Contact

pixela's People

Contributors

a-know avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pixela's Issues

Typo on front page

Hi there, just wanted to let you know there is a typo on the front page. It is currently written "As a visulaization" and it should be "As a visualization".

Thanks so much. James.

POST vs PUT pixel

Hi, I'm new to programming and just got started working on a fun project with APIs with python. I am not totally new to how APIs work, but know enough.

I am having trouble distinguishing the behavior of these two methods. I've seen tutorial videos made in the past where the POST method will not work if there is already an existing Pixel present on the same date. But oddly enough, that's now allowed. How is this different from modifying my Pixel with the PUT method to update it?

Should the PUT method be strictly only be used to modify Pixels, and the POST method be strictly used to create new pixels as worded in the documentation?

TLDR; how is it that I am able to overwrite/modify Pixels with the POST method? Is this an intended feature or a minor bug that should be addressed?

[Request] Get "a" graph definition json

I appreciate excellent product. Today, I have a request.

I want an endpoint that returns JSON for "a" graph for a specified ID.

Details:
Now I'm implementing a terraform provider for Pixela.

https://github.com/budougumi0617/terraform-provider-pixela

To create a terraform provider, we need to be able to perform CRUD operations to the resources.

https://learn.hashicorp.com/tutorials/terraform/provider-use?in=terraform/providers

However, your service does not have an public endpoint to get the json of the definition for the specified graph.
GET - /v1/users/<username>/graphs/<graphID> returns svg data.

Therefore, my implementation is using an alternative what I get the JSON for all the graph definitions and then search the graph information for a specified ID. even as the number of graphs defined by provider increases, this operation will be performed for each graph.
This is an unnecessary operation and may put an extra load on the server.

I'd appreciate if you would examine this request.

Regards,

API to get graph pixels list returns response without CORS headers

Get graph pixels list

Because of returnning response without CORS headers, my request is failed using axios.
I guess, it doesn't implement the OPTIONS method.

The error message below.

Access to XMLHttpRequest at 'https://pixe.la/v1/users/ryosms/graphs/<awesome-graph-id>/pixels' from origin 'https://my-awesome-app.example.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

400 Bad Request

400. That’s an error.

Your client has issued a malformed or illegal request. That’s all we know.

Process finished with exit code 0

#the code is:
import requests

pixela_endpoint = "https://pixe.la/v1/users"

user_params = {
"token": "b2hjb234235vjb523b523kj",
"username": "adiadiadrian1919",
"agreeTermsOfService": "yes",
"notMinor": "yes"
}

response = requests.get(url=pixela_endpoint, json=user_params)
print(response.text)

Unescaped '<' not allowed in attributes values at GET - /v1/users/<username>/graphs/<graphID>

GET - /v1/users//graphs/Unescaped '<' not allowed in attributes values というエラーになります

Expected

https://pixe.la/v1/users/sue445/graphs/tweets でSVGが返る

Actual

ステータスコードは200なのですが実際にはSVGは返ってこないで下記のようなエラーになります
image

https://pixe.la/@sue445 を見る限り、他のグラフも死んでいるように見えます

image

Can not update only timezone

Hello.

I want to update timezone in my graph. (v1.4.0 new feature)
https://github.com/a-know/Pixela/releases/tag/v1.4.0

But I couldn't update graph because validation error.

$ curl -s -X PUT -H "X-USER-TOKEN: $PIXELA_TOKEN" -H 'Content-Type: application/json' -d '{"timezone":"Asia/Tokyo"}' "https://pixe.la/v1/users/sue445/graphs/tweets"
{"message":"Either name, unit, color or purgeCacheURLs must be specified.","isSuccess":false}

ピクセルの色の付き方

ピクセルの色のグラデーション仕様がわからないのですが、整数モードで、
0,1,2,3の1刻みのときと、0,10,20,30の10刻みのときの色の付き方が
異なるのは仕様でしょうか?
(小さい数値のときはグラデーション表示は諦めるしかない?)

https://pixe.la/v1/users/sabazo/graphs/testpi.html
0,1,2,3 → 2019/5/19~
0,10,20,30 → 2018/1/16~

Token Authentication

Issue with token authentication when creating an account. It returns the message: {"message":"The token string must be at least 8 characters and not more than 128 letters and numbers or alphanumeric characters or symbols.","isSuccess":false}

Regardless of what I use.
PS: I know the Validation rule: [ -~]{8,128.

This is the token I have used: TOKEN = "khajbdvahdgy72y8his83"

Request to change blog links on wiki

Due to the end of the blog service Qrunch, I migrated my articles to own GitHub Pages.
I would appreciate it if you could modify the links to my articles on the wiki Useful case examples page.

My articles are the follwoing:

Thank you for providing such a cool app!

Access to hourly data via API

I'm not a Patreon member (yet!), but it seems as if there is the ability to click on a pixel and show hourly data for that day / pixel for paying Patrons. However, the API to add a pixel only allows you to add for an entire day. But I have some structured hourly data that I would to add. Is that possible? Or is hourly data only available via real-time / web hook methods? Thanks!

Time Zone

Hai,

Can I know how to format the time zone in post graph payload. It is always showing me "Invalid Time Zonw"

Increment by value higher than 1 / rate limit?

Hello there! So, I am trying to add real-time data in increments larger than 1, for example, ounces of water that I drink. When I finish a water bottle, that would be 24 ounces. I have tried to run this in iOS Shortcuts that sends 24 "increment" PUT messages in a loop, but it is returning an error saying it "cannot parse response." My guess is that I am hitting a rate limit. Am I? Is there better way to increment a pixel by a value larger than one? Or is there a way to add a number to a pixel without replacing the entire pixel?

Thanks!

How to properly render svg on markdown of GitHub

I write it in README.md as follows, but it becomes png output on GitHub side.
I am using the API of increment, but the graph is not updated.

How do I write it for rendering correctly?

![GameWith-Pixela](https://pixe.la/v1/users/<username>/graphs/<graphid>)
<img src="https://pixe.la/v1/users/<username>/graphs/<graphid>">

ホームページのapi documentへのリンクが間違っています

ここで紹介したAPIは、全体のほんの一部です。シンプルでかつ簡単なAPIで、Pixela を活用してみましょう!
の下のボタンのリンクがgithubのこのリポジトリへのリンクになってしまっています
Image from Gyazo

しばらくこのリポジトリを巡回して「APIどこ?」ってなってしまったので修正していただけると他の人が迷子にならないのではと思います

Cant create graph

My code return this
{"graphs":[]}

instead of this
{"message":"Success.","isSuccess":true}

I tried to delete, created it again and still not working

Below is my code (python)
Screenshot 2023-12-04 212358

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.